package com.example.triprec.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.example.triprec.R;

public class WelcomeActivity extends AppCompatActivity {

    private Button btnStartExplore;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

        initViews();
        setupListeners();
    }

    private void initViews() {
        btnStartExplore = findViewById(R.id.btn_start_explore);
    }

    private void setupListeners() {
        btnStartExplore.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(WelcomeActivity.this, LoginActivity.class);
                startActivity(intent);
                // 结束欢迎界面
                finish();
            }
        });

    }

} 